﻿#ifndef CMDCREATETWODLINECHART_H
#define CMDCREATETWODLINECHART_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdCreateTwoDLineChart : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdCreateTwoDLineChart();
        ~CmdCreateTwoDLineChart();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setLineChartType(int lineChartType);
        void setVariableIndex(int variableIndex);
        void setChosenkeyList(QList<QPair<int, QList<int>>> chosenkeyList);
        void setValueIndexs(QList<int> valueIndexs);
        void setSelectParserIndex(QList<int> selectParserIndex);
        void setIsOpenNewWindow(bool isOpenNewWindow);

    private:
    private:
        int m_lineChartType{0};
        int m_variableIndex;
        QList<QPair<int, QList<int>>> m_chosenkeyList;
        QList<int> m_valueIndexs;
        QList<int> m_selectParserIndex;
        bool m_isOpenNewWindow{true};
    };
} // namespace PostCommand

#endif
